package com.max.design.action.observer;

/**ConcreteSubject */
public class TianHeCitizen extends Citizen 
{

    public TianHeCitizen(Policeman pol)
    {
        setPolicemen();
        register(pol);
    }
    
    public void sendMessage(String help) 
    {
        setHelp(help);
        for (int i = 0; i < pols.size(); i++) 
        {
            Policeman pol = pols.get(i);
            //通知警察行动
            pol.action(this);
        }
    }
}

